// 快捷创建需求
import { defineStore } from "pinia";

let useQuickCreateStore = defineStore('quickCreate', {
    state: () => {
        return {
            quickCreateData: {
                projectId: null,
                projectType: null,
                taskType: 1,
                projectTitle: "",
                itemRequirementBossNameUUID: "",
                onlineTime: null,
                projectMsg: "",
                filePaths: []
            } as any,
        }
    },
    actions: {
        // 存储需求数据
        setQuickCreateData(data: any) {
            this.quickCreateData = data;
        },
        // 清除需求数据
        clearQuickCreateData() {
            this.quickCreateData = null;
        }
    }
})

export default useQuickCreateStore;